package com.eliota.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eliota.common.R;
import com.eliota.controller.dto.UserDto;
import com.eliota.entity.User;

import java.util.List;

/**
 * @author M.G
 * @create 2023-03-25 13:48
 * @date 2023/3/25 13:48
 */
public interface UserService extends IService<User> {
    boolean saveUser(User user);

    UserDto login(UserDto userDto);

    User register(UserDto userDto);

    Boolean deleteById(Integer id);

    /**
     *
     * @param ids
     * @return
     */
    boolean deleteBatchByIds(List<Integer> ids);
}
